package Expe9;

/**
 * @Author 28021
 * @Date 2022/10/25
 */
//class Base {
//    public Base(){
//        System.out.println("Base");
//    }
//}
//class  Child extends Base{
//    public Child(){
//        System.out.println("Child");
//    }
//}
//public class Sample{
//    public static void main(String[] args) {
//        Child c = new Child();
//    }
//}
public class Sample{
    public static void main(String[] args){
        Child c =  new Child();
    }
}
class Base extends Object{
    private String name;
    public Base(String Child){
        name="Base";
    }
}
class  Child extends Base{
    public Child(){
        super("Child");

    }
}